# roles/prometheus/templates/prometheus.yml.j2
global:
  scrape_interval: 15s
  evaluation_interval: 15s

scrape_configs:
{% for job in prometheus_scrape_targets %}
  - job_name: '{{ job.job_name }}'
    static_configs:
{% for config in job.static_configs %}
      - targets: {{ config.targets | to_nice_json }}
{% endfor %}
{% endfor %}